import Vue from 'vue';
import VueI18n from 'vue-i18n';
import Languages from '@/i18n/locale';

export default ({ app, store }) => {
    // Vue.use(VueI18n);
  // Set i18n instance on app
  // This way we can use it in middleware and pages asyncData/fetch
  app.i18n = new VueI18n({
    // locale: store.state.locale||'zh-CN',
    // locale: 'zh',
    // fallbackLocale: 'zh-CN',
    // fallbackLocale: 'en-US',
    messages: Languages
  });

}